package com.springboot.feign;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
public class UserFeignFallBack implements UserFeign{

	@Override
	public ResponseEntity getUserById(String userId) throws Exception{
		// 返回降级响应（钱包返回）
		return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null);
	}

}
